home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
ast_comp
/
gopher.lha
/
gopher1.01
/
Makefile
next >
Wrap
Makefile
|
1992-06-24
|
1KB
|
51 lines
include Makefile.config
all: objects server client
server: gopherd/gopherd
client: gopher/gopher
objects: object/libgopher.a
gopherd/gopherd: objects
@echo "Making server"
@if [ -f /sdmach -a -d ./ir ]; then \
(echo "Making server with NeXT and WAIS searching";\
cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH -DWAISSEARCH" nextwais);\
elif [ -f /sdmach ]; then \
(echo "Making server with NeXT searching";\
cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH" next); \
elif [ -d ./ir ]; then \
(echo "Making server with WAIS searching";\
cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DWAISSEARCH" wais); \
else (echo "Making data server"; cd gopherd; $(MAKE) $(MFLAGS) none) \
fi
gopher/gopher: object/libgopher.a
@echo "Making client"
(cd gopher; $(MAKE) $(MFLAGS))
object/libgopher.a:
@echo "Making Objects"
(cd object; $(MAKE) $(MFLAGS))
install:
(cd gopher; $(MAKE) $(MFLAGS) install);
(cd gopherd; $(MAKE) $(MFLAGS) install);
(cd doc; $(MAKE) install)
clean:
(cd gopher; $(MAKE) $(MFLAGS) clean)
(cd gopherd; $(MAKE) $(MFLAGS) clean)
(cd object; $(MAKE) $(MFLAGS) clean)
(cd mindexd; $(MAKE) $(MFLAGS) clean)
(cd doc; $(MAKE) $(MFLAGS) clean)
-rm -f "examples/Sample Directory/wais-index/index."*
spotless: clean
-rm -f *~
tar: spotless
-rm -f ir ui
HERE=`basename $$PWD`; \
cd ..; tar cvf - $$HERE| compress - > $$HERE.tar.Z